package com.yyk.springserviceone;

import com.alibaba.druid.pool.DruidDataSource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

import javax.sql.DataSource;

/**
 * @author matjx
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.yyk"})
@MapperScan("com.yyk.springserviceone.mapper")
//该注解使Servlet生效
@ServletComponentScan
public class SpringServiceOneApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringServiceOneApplication.class, args);
    }
}
